from dataclasses import dataclass


@dataclass(frozen=True)
class Student:
    name: str
    age: int


s_1 = Student("jack", 12)

print(s_1.age)
s_1.age = 20